package net.lab1024.sa.admin.util;

import net.lab1024.sa.admin.module.app.api.login.domain.RequestAppUser;
import net.lab1024.sa.admin.module.system.login.domain.RequestEmployee;
import net.lab1024.sa.base.common.domain.RequestUser;
import net.lab1024.sa.base.common.util.SmartRequestUtil;

/**
 * app 端的请求工具类
 */
public final class AppRequestUtil {


    public static RequestAppUser getRequestAppUser() {
        return (RequestAppUser) SmartRequestUtil.getRequestUser();
    }

    public static Long getRequestAppUserId() {
        RequestUser requestUser = getRequestAppUser();
        return null == requestUser ? null : requestUser.getUserId();
    }


}
